package com.useeinfo.oa.open.mobile;

import com.useeinfo.oa.modules.security.entity.SystemUser;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: YiYouFuPlatform
 * @author: Taogq
 * @createDate: 2018-12-20
 * @createTime: 16:58:25
 */
public class UserCommTools {

    public static SystemUser getUser(HttpServletRequest request) {
        SystemUser systemUser = (SystemUser) request.getSession().getAttribute("user");
        if (null != systemUser)
            return systemUser;
        return null;
    }
}
